package foodmaterial.service.impl;

import foodmaterial.dao.FinancialDao;
import foodmaterial.dto.*;
import foodmaterial.entity.*;
import foodmaterial.service.FinancialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FinancialServiceImpl implements FinancialService {

    @Autowired
    private FinancialDao dao ;

    @Override
    public List<StockBillDetail> queryStockDetail(StockBillDto dto) {
        return dao.selectStockDetail(dto);
    }

    @Override
    public List<PurchaseBill> queryPurchaseBill(PurchaseBillDto dto) {
        return dao.selectPurchaseBill(dto);
    }

    @Override
    public List<PurchaseBillDetails> queryPurchaseSummary(PurchaseBillDto dto) {
        return dao.selectPurchaseSummary(dto);
    }

    @Override
    public List<OrdersDetail> queryBillingDetailedList(CustomerBillingDetailedListDto dto) {
        return dao.selectBillingDetailedList(dto);
    }

    @Override
    public List<OrdersRecipe> queryRecipeBillingDetailedList(CustomerBillingDetailedListDto dto) {
        return dao.selectRecipeBillingDetailedList(dto);
    }

    @Override
    public List<Orders> queryCustomerCheck(CustomerBillingDetailedListDto dto) {
        return dao.selectCustomerCheck(dto);
    }

    @Override
    public List<OrdersDetail> querySaleSummary(SaleSummaryDto dto) {
        return dao.selectSaleSummary(dto);
    }

    @Override
    public Double queryPurchaseSummaryTotalMoney(PurchaseBillDto dto) {
        return dao.selectPurchaseSummaryTotalMoney(dto);
    }

    @Override
    public Double querySaleSummaryTotalMoney(SaleSummaryDto dto) {
        return dao.selectSaleSummaryTotalMoney(dto);
    }

    @Override
    public List<OrdersRecipe> queryRecipeSaleSummary(OrdersRecipeDto dto) {
        return dao.selectRecipeSaleSummary(dto);
    }

    @Override
    public Double queryRecipeSaleSummaryTotalMoney(OrdersRecipeDto dto) {
        return dao.selectRecipeSaleSummaryTotalMoney(dto);
    }
}
